package com.xuecheng.orders.exception;

import com.xuecheng.base.exception.XCPlusBaseException;

/**
 * @author 勾新杰
 * @version 1.0
 * @description: 订单已经支付
 * @date 2025/3/2 9:55
 */
public class OrderPaidException extends XCPlusBaseException {

    OrderPaidException(OrdersError ordersError){
        super(ordersError.getErrMessage());
    }

    public static void cast(){
        throw new OrderPaidException(OrdersError.ORDER_PAID);
    }
}
